
# 链接Boost Thread库到你的目标
link_libraries(
    boost
    openssl
    smtp
)

all_source_recurse(CC_SOURCES)

add_executable(test_smtp
    ${CC_SOURCES}
)

# 把static目录下的所有文件复制到安装目录下
add_custom_command(TARGET test_smtp POST_BUILD
    COMMAND ${CMAKE_COMMAND} -E copy_directory
    ${CMAKE_SOURCE_DIR}/src/server/static
    $<TARGET_FILE_DIR:test_smtp>
)


